package com.za.wbw.util;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

public class InterceptorException extends AbstractInterceptor {
	static Logger logger = Logger.getLogger(InterceptorException.class);
    public String intercept(ActionInvocation invocation) throws Exception {
    	// BaseAction action = (BaseAction) invocation.getAction();
        try {
        	return invocation.invoke();
        } catch (Exception e) {
        	e.printStackTrace();
        	throw e;
        }
    }

    public void init() {
        super.init();
    }
}